package com.spring.cloud.exception;

import com.spring.cloud.enums.BusinessMessage;
import com.spring.cloud.utils.JsonResultUtil;
import com.spring.cloud.vo.JsonResult;

public class ErrorApiResultHandlerImpl implements ErrorApiResultHandler{

    @Override
    public JsonResult handlerError(Exception e, BusinessMessage businessMessage) {
        return JsonResultUtil.failure(businessMessage);
    }
}
